package cn.edu.nuc.crm.dao;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import cn.edu.nuc.crm.entity.Product;

public interface ProductMapper {
	int deleteByPrimaryKey(Integer productid);

    int insert(Product product);

    int insertSelective(Product record);

    Product selectByPrimaryKey(Integer productid);

    int updateByPrimaryKeySelective(Product record);

    int updateByPrimaryKey(Product record);
    //列出商品列表
	List<Product> product();

	int count();

	List<Product> findByid(@Param("start")int start,@Param("offset")int offset);
	
	List<Product> selectByName(String productname);
	
	Product find(int productid);
}